package com.jinke.api.modules.third.ezeeship.model.response;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
public class TrackingResponse {
    private String result;
    private String message;
    private TrackingData data;

    // 构造函数、Getter和Setter方法省略
    @Data
    public static class TrackingData {
        @JsonProperty("trackingNumber")
        private String trackingNumber;

        @JsonProperty("carrierCode")
        private String carrierCode;

        @JsonProperty("serviceCode")
        private String serviceCode;

        @JsonProperty("trackingStatus")
        private TrackingStatus trackingStatus;

        @JsonProperty("trackingHistorys")
        private List<TrackingStatus> trackingHistorys;

        // 构造函数、Getter和Setter方法省略
    }
    @Data
    public static class TrackingStatus {
        private String status;
        private String statusDetails;
        private String country;
        private String state;
        private String city;
        private String statusTime;

        // 构造函数、Getter和Setter方法省略
    }

}
